package connectfour;

import java.util.ArrayList;
import java.util.List;

public class Block {
	 
	static List<Integer> block = new ArrayList<Integer>(6);
	static int token;
	
	//constructor
	public Block(){
		@SuppressWarnings("unused")
		List<Integer> block = new ArrayList<Integer>(6);
		initializeBlocks();
		}
	
	// methods
	
	public void initializeBlocks(){
		for (int i=0; i<6; i++){
			block.add(0);
		}
	}
	
	
	public void setRed(int row){
		block.set(row, 1);
	}
	
	public void setYellow(int row){
		block.set(row, 2);
	}
	
	public int getBlockContent(int row){
		return block.get(row);
	}
}
